#ifndef OBCOIN_H
#define OBCOIN_H

#include "ObStatic.h"
#include "d3dx9.h"

class ObCoin : public ObStatic{
public:
	enum COIN {SCORECOIN = 140};
	ObCoin();
	~ObCoin();

	bool setId(int nid);
	static bool checkType(int obID);

	void collidedWith(ObObject* object, CollisionRS rs);
	void update(float dt);
	void render(ID3DXSprite* mSprite);

	static bool loadTexture();
	static bool releaseTexture();

private:
	static	IDirect3DTexture9*	mTex;
	static  CSound* sCoin;

	int		mCurrentSprite;
	float	mDelayTime;
};

#endif